﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsProjectStandardMeasureItem")]
    public partial class MsProjectStandardMeasureItem : BaseEntity
    {
        /// <summary>
        /// 类型Id
        /// </summary>
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 标准库Id
        /// </summary>
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ProjectStandardId { get; set; }

        /// <summary>
        /// 测量项名称
        /// </summary>
        [Column(TypeName = "varchar(50)")]
        public string Title { get; set; }

        /// <summary>
        /// 测量项代码
        /// </summary>
        [Column(TypeName = "varchar(50)")]
        public string Code { get; set; }

        /// <summary>
        /// 工艺类型：抹灰/铝模，集团/国家
        /// </summary>
        [Column(TypeName = "varchar(50)")]
        public string SupportCraft { get; set; }

        /// <summary>
        /// 标准：精装/毛坯
        /// </summary>
        [Column(TypeName = "varchar(50)")]
        public string SupportStandard { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [Column(TypeName = "int2")]
        public int Type { get; set; }

        /// <summary>
        /// 是否有设计值
        /// </summary>
        [Column(TypeName = "int2")]
        public int HasDesignValue { get; set; }

        [Column(TypeName = "uuid")]
        public Guid CompanyGuid { get; set; }

        [Column(TypeName = "uuid")]
        public Guid ProjectGuid { get; set; }

        [Column(TypeName = "uuid")]
        [Key]
        public Guid MsProjectStandardMeasureItemId { get; set; }
    }
}